package com.payment.common.base;


public class Const {
	public static final String TIME="Time";

	public interface RedisCacheExtime{
		//redis  Session超时有效期30分钟test
		int REDIS_SESSION_EXTIME=60*30;
		//短信验证码有效期（过期不做删除，执行完业务逻辑后手动删除）
		int REDIS_MESSAGE_CODE_EXTIME=60*5;
		//短信重发，时间限制
		int REDIS_MESSAGE_CODE_LIMIT=60;
		//短信验证码发送有效期 五分钟
		int REDIS_MESSAGE_CODE_VALIDITY=5;
	}

	/**
	 * 发送验证码
	 */
	public enum SendMessageEnum{
		FIRSTSEND(1, "未发送过短信验证码"),
		RESEND(2, "可再次发送短信验证码"),
		DISABLERESEND(3, "重复发送");
		SendMessageEnum(int code, String value) {
			this.code = code;
			this.value = value;
		}
		private String value;
		private int code;
		public String getValue() {
			return value;
		}
		public int getCode() {
			return code;
		}

	}
	/**
	 * 检索条件月或者是天
	 */
	public enum DayORMonthEnum{
		DAY("day", "day"),
		MONTH("month", "month");
		DayORMonthEnum(String code, String value) {
			this.code = code;
			this.value = value;
		}
		private String value;
		private String code;
		public String getValue() {
			return value;
		}
		public String getCode() {
			return code;
		}

	}

}
